{{template "../public/page_header.html" .}}

<div class="container-fluid">
    <div class="row">
        <div class="panel panel-default">
            <div class="panel-heading">
                增加管理员
            </div>
            <div class="panel-body">
                <div class="table-responsive input-form">
                    <form action="/{{config "String" "adminPath" ""}}/administrator/goedit" method="post">
                        <ul>
                            <li> 管理员名称: <input type="text" name="username"/></li>
                            <li> 管理员密码: <input type="password" name="password"/></li>
                            <li> 管理员电话: <input type="text" name="mobile"/></li>
                            <li> 管理员邮箱: <input type="text" name="email"/></li>
                            <li> 管理员所属部门:
                                <select name="role_id" id="role_id">
                                {{range $key,$value := .roleList}}
                                    <option value="{{$value.Id}}">{{$value.Title}}</option>
                                {{end}}
                                </select>
                            </li>
                            <li>
                                <br/>
                                <button type="submit" class="btn btn-default">提交</button>
                            </li>
                        </ul>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

</body>
</html>